//go:build mage
// +build mage

package main

import (
	"github.com/magefile/mage/sh"
)

func Build() error {
	return sh.RunV("go", "build", "./...")
}

func Protobuf() error {
	if err := sh.RunV("./scripts/protobuf-check.sh"); err != nil {
		return err
	}

	return sh.RunV("./proto/generate.sh")
}
